<?php $this->headTitle(__('User Details')); ?>
<div id="maincontent">
    <?php if($this->data):  ?>
        <table width="100%">
            <thead>
                <th style="width:85px;"><?php echo __('Title'); ?></th>
                <th colspan="2"><?php echo __('Information'); ?></th>
            </thead>
            <tbody>
                <tr><td><?php echo __('First Name') ?></td><td><?php echo $this->data['first_name'] ?></td>
                    <td rowspan="5" width="130">
                        <?php $imgPath =  (isset($this->data['Profile']['image']))? "/".$this->profileImagePath. "/" .$this->data['Profile']['image']:'/images/noimage.png'; ?>
                        <img width="120" height="140" src="<?php echo $imgPath  ?>" alt="Image" />
                    </td>
                </tr>
                <tr><td><?php echo __('Last Name') ?></td><td><?php echo $this->data['last_name'] ?></td></tr
                <tr><td><?php echo __('Address') ?></td><td><?php echo $this->data['address'] ?></td></tr>
                <tr><td><?php echo __('Bank') ?></td><td colspan="2"><?php echo $this->data['Bank']['name'] ?></td></tr>
                <tr><td><?php echo __('Email') ?></td><td colspan="2"><?php echo $this->data['email'] ?></td></tr>
            </tbody>
        </table>
    <?php else: ?>
        <div><?php echo __('User Not found'); ?></div>
    <?php endif; ?>
</div>
